diff options
| author | Adam Soltys <[email protected]> | 2024-02-20 23:17:57 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-02-20 23:17:57 -0800 |
| commit | 4c0102db94287b5adc2333d874a35154aaf86d43 (patch) | |
| tree | 6c2882b7ed4db076ffe70a586c78f06bcddfaa61 /src/routes/(app)/[username]/items/[id]/+page.svelte | |
| parent | fbf3cef47c612b9c334917f10c810c797fc77da6 (diff) | |
| download | coinos-ui-items.tar.gz coinos-ui-items.zip | |
item drag and dropitems
Diffstat (limited to 'src/routes/(app)/[username]/items/[id]/+page.svelte')
| -rw-r--r-- | src/routes/(app)/[username]/items/[id]/+page.svelte | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/routes/(app)/[username]/items/[id]/+page.svelte b/src/routes/(app)/[username]/items/[id]/+page.svelte index ddf4cf1d..49619a33 100644 --- a/src/routes/(app)/[username]/items/[id]/+page.svelte +++ b/src/routes/(app)/[username]/items/[id]/+page.svelte @@ -1,14 +1,18 @@ <script> import { t } from "$lib/translations"; import ItemForm from "$comp/ItemForm.svelte"; + import { fail } from "$lib/utils"; + export let data; - let { item } = data; - console.log(item) + export let form; + + $: form?.message && fail(form.message); + let { item, user } = data; </script> <div class="container max-w-xl mx-auto"> <h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold mb-10"> {$t("items.edit")} </h1> - <ItemForm {item} /> + <ItemForm {item} {user} /> </div> |
